package itsm.isperp.module.entity.db;

import itsm.isperp.framework.domain.IBean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 数据库实体
 * 
 * @author lizx
 * @date 2013-5-4
 */
@Entity
@Table(name = "db_entity")
public class DbEntity implements IBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	protected String id;

	@Column
	protected String name;
	@Column
	protected String entityType;
	@Column
	protected String tableName;

	@Column
	protected String sqlStr;

	@Column
	protected boolean useForImport;

	@Column
	protected boolean useForSlm;

	@Column
	protected String slmMonitorColumn;

	@Column
	protected String slmRelyTableName;

	@Column
	protected String description;

	@Column
	protected String entityCategory;

	@Column
	protected int orderNum;

	@Override
	public String getId() {
		return id;
	}

	@Override
	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEntityType() {
		return entityType;
	}

	public void setEntityType(String entityType) {
		this.entityType = entityType;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getSqlStr() {
		return sqlStr;
	}

	public void setSqlStr(String sqlStr) {
		this.sqlStr = sqlStr;
	}

	public boolean getUseForImport() {
		return useForImport;
	}

	public void setUseForImport(boolean useForImport) {
		this.useForImport = useForImport;
	}

	public boolean getUseForSlm() {
		return useForSlm;
	}

	public void setUseForSlm(boolean useForSlm) {
		this.useForSlm = useForSlm;
	}

	public String getSlmMonitorColumn() {
		return slmMonitorColumn;
	}

	public void setSlmMonitorColumn(String slmMonitorColumn) {
		this.slmMonitorColumn = slmMonitorColumn;
	}

	public String getSlmRelyTableName() {
		return slmRelyTableName;
	}

	public void setSlmRelyTableName(String slmRelyTableName) {
		this.slmRelyTableName = slmRelyTableName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getEntityCategory() {
		return entityCategory;
	}

	public void setEntityCategory(String entityCategory) {
		this.entityCategory = entityCategory;
	}

	public int getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(int orderNum) {
		this.orderNum = orderNum;
	}

}
